import { Component, OnInit } from '@angular/core';
import { MemberService } from '../member.server';
import { LayoutRourteStatus } from 'src/app/model/status';
import { MessageService } from 'src/app/core/service';

@Component({
  templateUrl: './member-center-account.component.html',
  styleUrls: ['./member-center-account.component.scss']
})
export class MemberCenterAccountComponent implements OnInit {

  private _layoutRourteStatus: LayoutRourteStatus = {
    url: '/member/center/account',
    isHiddeBreadcrumb: true,
    breadcrumbs: [
      {tragetTitle: '账户设置'}
    ]
  };

  ngOnInit() {
    this.msg.sendLayoutRourteStatus(this._layoutRourteStatus);
  }

  async addBank(data) {
    // let teg = await this.memberServer.getAJX('创建银行',data);
    // this.memberServer.getApiSuccess(teg,{bool:true,msg:'创建银行成功！'}) ? this.successListOk(teg.data,'创建银行'):'';
  }

  public successListOk(data, url): void{
    switch (url) {
      case '获取币提现(余额,费率等)':
        break;
    }
  }
  public toggleCollapse(): void {
  }
  public getAll(e): void{
  }
  public handleOk(todata): void{
  }
  public onAddBank(todata): void{
  }
  public selBankCard(e): void{
  }

  isVisible = false;
  handleCancel(): void {
    this.isVisible = false;
  }

  constructor(
    private memberServer: MemberService,
    private msg: MessageService
  ) {
  }
}
